function linklogin(linktext){
 var s = document.URL;
 var s = s.toLowerCase();
 var findme = "&login";
 if(s.lastIndexOf(findme)!=-1){
  document.location.href=linktext + findme;
 }
 else{
  document.location.href=linktext;
 };
};

function login() {
 var s = document.URL;
 var s = s.toLowerCase();
 //alert(s.substr(-4,4));
 if(s.substr(s.length - 4,4)==".nsf"){
 	//alert('here');
 	document.location.href=document.URL + '?OpenDatabase&Login'; 
 }else{
 
 	document.location.href=document.URL + '&Login'; 
 };
};

function getPassword() {
 win=window.open('/SoftQuest/Website/Home.nsf/get+password?OpenForm','','scrollbars=no, width=350,height=225, toolbars=no');
};
